package org.jeecg.modules.schoolyear.service.impl;

import org.jeecg.modules.schoolyear.entity.CouSchoolYear;
import org.jeecg.modules.schoolyear.mapper.CouSchoolYearMapper;
import org.jeecg.modules.schoolyear.service.ICouSchoolYearService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: cou_school_year
 * @author: baochangrong
 * @Date:   2022-02-10
 * @Version: V1.0
 */
@Service
public class CouSchoolYearServiceImpl extends ServiceImpl<CouSchoolYearMapper, CouSchoolYear> implements ICouSchoolYearService {

    @Autowired
    CouSchoolYearMapper couSchoolYearMapper;

    /**
     * 学年查询 不分页
     */
    @Override
    public List<CouSchoolYear> listAll(String tenantId) {
        List<CouSchoolYear> couSchoolYearList = couSchoolYearMapper.listAll(tenantId);
        return couSchoolYearList;
    }

    /**
     * 学年查询 不分页
     */
    @Override
    public List<CouSchoolYear> queryIsDefault(CouSchoolYear couSchoolYear) {
        List<CouSchoolYear> couSchoolYearList = couSchoolYearMapper.queryIsDefault(couSchoolYear);
        return couSchoolYearList;
    }


}
